package com.k.demo.service;

import java.util.List;

import com.k.demo.entity.PowerDistribution;

public interface PowerDistributionService {
	
	List<PowerDistribution> getPowerDistributeByUserId(int user_id);
	
	List<PowerDistribution> getPowerDistributeByPowerId(int power_id);
	
	int deletePowerFromUser(int user_id,List<Integer> power_id);
	
	int grantPowerToUser(int user_id,List<Integer> power_id);
	
	int clearPower(int user_id);
	
	List<PowerDistribution> getByUserIdInList(List<Integer> user_id);
	
	List<Integer> getAllUserId();
}
